<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>DICCIONARIO</title>

<script type="text/javascript">
	function carga() {
		document.getElementById("usuario").focus();
	}
	function validarDatos() {
		var usuario = document.getElementById("usuario");
		var password = document.getElementById("password");

		if ((usuario.value == "" || usuario.value == '' || usuario.value == null)
				&& (password.value == "" || password.value == '' || password.value == null)) {
			alert("Ingresa Usuario y Password");
			usuario.focus();
			return false;
		} else if (usuario.value == "" || usuario.value == '' || usuario.value == null) {
			alert("Ingresa Usuario");
			usuario.focus();
			return false;
		} else if (password.value == "" || password.value == '' || password.value == null) {
			alert("Ingresa Password");
			password.focus();
			return false;
		} else {
			return true;
		}
	}
</script>
</head>
<body style="background-image: url(Background/...);" onload="carga();">
	<form action="loginWeb.jr" method="post" onsubmit="return validarDatos();">
		<table align="center">
			<tr>
				<td colspan="2" style="font-weight: bold; size: 20px; color: black" align="center">Ingresa Usuario y Password</td>
			</tr>
			<tr>
				<td style="font-weight: bold; size: 12px; color: black;" align="right">Usuario :</td>
				<td><input type="text" name="username" id="username"></td>
			</tr>
			<tr>
				<td style="font-weight: bold; size: 12px; color: black;" align="right">Password :</td>
				<td><input type="password" name="password" id="password"></td>
			</tr>
			<tr>
				<td><input type="button" value="CANCELAR" style="font-size: 18px; color: black"></td>
				<td><input type="submit" value="ACEPTAR" style="font-size: 18px; color: black"></td>
			</tr>
		</table>
	</form>
</body>
</html>